# 随机生成8个 1-33的整形数字
from random import*
zhon = []
target = []
for i in range(8):
    num = randint(1, 33)
    zhon.append(num)

    # 用户输入一串数组
    num1 = eval(input("请输入1-33的数字"))
    target.append(num1)
print(zhon) # 随机生成8个数
print(target)
# 两个数组进行比较
flag = 0
for i in range(8):
    for j in range(8):
        if target[i] == zhon[j]:
            flag = flag + 1
print(flag)

# 得到相同的数字的个数 即可判断是否中奖
if flag ==8:
    print("一等奖")
elif flag == 7:
    print("二等奖")
elif flag == 6:
    print("三等奖")
elif flag == 5:
    print("四等奖")
else:
    print("很遗憾,没有中奖")